
<template>
  <div class="web">
    <div class="banner"></div>
    <div class="web_pub">
      <div class="pub_con">
        <div class="pub_title">
          <h2>
            <span>WEB前端 IT互联网</span>
            <b>紧缺人才</b>
          </h2>
          <h4>时代的变化 科技的发展 Web前端全栈占据顶端</h4>
        </div>
        <div class="props">
          <div class="props_title">
            <span>HTML5</span>
            <b>行业前景</b>
          </div>
          <div class="props_con">
            <span>以一个网站为例包括网页设计、前端开发、程序开发等。网站设计就是网站的外观，平面的东西。程序开发也好理解，就是功能实现。而前端开发，简单来说，就是把平面效果图转换成网页，把静态转换成动态。它的工作包括了：切图、写样式、做鼠标效果和图片切换效果等。而优秀的前端开发可以在实现这些效果的同时，既不影响网页打开速度、浏览器兼容性和搜索引擎的收录，还可以让用户使用体验更加舒适，使网站在访问中显得更精细、更用心。访客使用起来更简便。另外，现在前端工作还不仅仅只是网页制作，还有微网站、APP制作、游戏制作、例如可以将你开发的Web页面直接打包成手机使用的APP应用，游戏的互动界面更是以前端开发技术为主。</span>
          </div>
        </div>
        <div class="autoplay">
          <swiper class="swiper advantage" :options="swiperOption">
            <swiper-slide style="width:273px; margin-right:36px">
              <img src="http://itdahua.com/img/lb2.3dfa6284.png" alt />
            </swiper-slide>
            <swiper-slide>
              <img src="http://itdahua.com/img/lb3.943768da.png" alt />
            </swiper-slide>
            <swiper-slide>
              <img src="http://itdahua.com/img/lb4.fedb09c6.png" alt />
            </swiper-slide>
            <swiper-slide>
              <img src="http://itdahua.com/img/lb3.943768da.png" alt />
            </swiper-slide>
            <swiper-slide>
              <img src="http://itdahua.com/img/lb1.ec2de167.jpg" alt />
            </swiper-slide>
            <div class="swiper-button-prev" slot="button-prev"></div>
            <div class="swiper-button-next" slot="button-next"></div>
          </swiper>
        </div>
      </div>
    </div>
    <div class="other_con">
      <div class="pie_chart">
        <h2 class="chart_tit">
          全栈工程师 企业
          <span>高薪重金</span>
          招人
        </h2>
        <h4>供不应求</h4>
        <div class="need">
          <img
            src=""
            alt
          />
          <span>市场岗位需求</span>
        </div>
        <div class="chart_main">
          <div class="chart_pic">
            <img src="http://itdahua.com/img/chart.6e9e4c57.png" alt />
            <span class="boss">BOSS直聘</span>
            <span class="liepin">猎聘网</span>
            <span class="lagou">拉勾网</span>
            <span class="others">其他招聘网站</span>
            <span class="zhilian">智联招聘</span>
            <span class="qiancheng">前程无忧</span>
          </div>
          <div class="chart_con">
            <p>目前HTML5工程师日均岗位缺口超5000</p>
            <p>伴随着互联网+深入发展</p>
            <p>作为唯一前端展示技术</p>
            <p>预计HTML5人才缺口将翻倍增长</p>
          </div>
        </div>
      </div>
      <div class="money">
        <div class="money_left">
          <div class="money_icon">
            <img
              src=""
              alt
            />
            <span>行业薪资调研</span>
          </div>
          <div class="money_pic">
            <div class="money_pie">
              <h4>
                <span>每月平均薪资:</span>
                <b>17640</b>
              </h4>
              <p>薪资水平</p>
              <img src="	http://itdahua.com/img/money.275e1a6d.png" alt />
            </div>
            <div class="money_list">
              <h4>
                全栈工程师
                <span></span>
                平均薪资水平
              </h4>
              <img src="http://itdahua.com/img/moneylist.a9deae0a.png" alt />
            </div>
          </div>
        </div>
        <div class="money_right">
          <div class="money_right_icon">
            <img
              src=""
              alt
            />
            <span>薪资变化数据表</span>
          </div>
          <div class="money_right_pic">
            <h4>
              数据来源为职友集，以数据统计为依据，全栈工程师平均薪资
              <br />高于前端工程师以及后端工程师的薪资水平的一倍
            </h4>
            <img src="http://itdahua.com/img/money_line.280bc2f4.png" alt />
          </div>
        </div>
      </div>
      <div class="results">WEB前端 学习成果</div>
      <div class="subtitle">用作品说话 让你更深彻的了解Web前端</div>
      <div class="show_web">
        <div class="web_icon">
          <img src="	http://itdahua.com/img/show1.a6da83ee.png" alt />
        </div>
        <h4>学习后可制作个人主页，可开发大型信息量网站，企业集团网站，电商网站。如：淘宝、京东、等各大PC端页面网站。同时对于企业网站制作可独立完成，专区额外费用。</h4>
        <div class="web_pic">
          <img src="	http://itdahua.com/img/computer.e6612732.png" alt />
        </div>
      </div>
      <div class="show_app show_web">
        <div class="web_icon">
          <img src="http://itdahua.com/img/show2.b2d83d07.png" alt />
        </div>
        <h4>应用软件界面前端信息的展示与交互程序设计应用，通过对各页面的关联程序嵌入，使用户对手机APP软件的操作灵活应用。如：微信、美团、微信小程序、腾讯视频、爱奇艺视频等各大APP软件。</h4>
        <div class="web_pic app_pic">
          <img src="	http://itdahua.com/img/phone1.2bf1cc3b.png" alt />
          <img src="http://itdahua.com/img/phone2.5204610b.png" alt />
          <img src="http://itdahua.com/img/phone3.aeb476c0.png" alt />
        </div>
      </div>
      <div class="show_app show_web">
        <div class="web_icon">
          <img src="http://itdahua.com/img/show3.56fa4f3e.png" alt />
        </div>
        <h4>掌握游戏前端界面，窗口模块及其他交互动效的展示及应用。</h4>
        <div class="web_pic app_pic">
          <img src="http://itdahua.com/img/wechat1.2eeec138.png" alt />
          <img src="http://itdahua.com/img/wechat2.d381d73a.png" alt />
          <img src="http://itdahua.com/img/wechat3.17203bd4.png" alt />
        </div>
      </div>
      <div class="lesstime">
        <span>高含金量</span>
        的课程 低投资 高回报
      </div>
      <div class="lesstime_sub">用最少的时间学习更多的技能</div>
      <div class="grossip">
        <img src="http://itdahua.com/img/grossip.17be75d2.png" alt />
      </div>
      <div class="teacher_title">
        全部
        <span>一线实战</span>
        讲师
      </div>
      <div class="teacher_tit_sub">你不想高薪都难</div>
      <ul class="teacher_show">
        <li v-for="item in showlist" :key="item.id">
          <img :src="baseurl + item.image" alt />
          <div class="bottom_mask">
            <h4>{{ item.name }}</h4>
            <p>H5讲师</p>
          </div>
          <div class="mask">
            <h4>简介</h4>
            <div class="jianjie">{{ item.introduce }}</div>
            <p>查看详情 >></p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'

import axios from 'axios'
export default {
  components: {
    Swiper,
    SwiperSlide
  },
  data() {
    return {
      swiperOption: {
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: {
          delay: 2500,
          disableOnInteraction: false
        },
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev'
        },
        loop: true,
        slidesPerView: 'auto',

      },
      teacherlist: [],
      cid: 7,
      baseurl: 'http://itdahua.com'
    };
  },
  async created() {
    let res = await axios.get('api/teacher/list');
    console.log(res)
    this.teacherlist = res.data.data
    console.log(this.teacherlist)
  },
  computed: {
    showlist() {
      let arr = []
      arr = this.teacherlist.filter(item => {
        return item.cid == this.cid
      })
      return arr
    }
  }
}

</script>
<style lang='scss' scoped>
.web {
  .banner {
    width: 100%;
    height: 650px;
    background: url(http://itdahua.com/img/banner.aa6c1d43.jpg) 50% no-repeat;
    background-size: cover;
    min-width: 1200px;
  }
  .web_pub {
    width: 100%;
    height: 1197px;
    background: url(http://itdahua.com/img/mainbackground.776555f7.png) 50%
      no-repeat;
    background-size: cover;
    min-width: 1200px;
    .pub_con {
      width: 1200px;
      margin: 0 auto;
      .pub_title {
        padding: 80px 0;
        text-align: center;
        span {
          font-size: 40px;
          font-weight: 700;
          color: #444746;
        }
        b {
          font-style: normal;
          font-size: 40px;
          font-weight: 700;
          color: #298fec;
        }
        h4 {
          color: #9ea9ad;
          font-size: 22px;
          text-align: center;
          margin-top: 15px;
        }
      }
      .props {
        .props_title {
          text-align: center;
          span {
            font-size: 30px;
            color: #298fec;
          }
          b {
            font-size: 30px;
            color: #666;
          }
        }
        .props_con {
          margin-top: 15px;
          line-height: 48px;
          text-indent: 2em;
          span {
            font-size: 22px;
            color: #77797b;
          }
        }
      }
      .autoplay {
        position: relative;
        .advantage {
          width: 100%;
          margin-top: 105px;
          height: 435px;
          .swiper-slide {
            width: 273px;
            margin-right: 25px;
            img {
              width: 272px;
              height: 435px;
              font-size: 0;
            }
          }
        }
      }
    }
  }
  .other_con {
    width: 1200px;
    margin: 0 auto;
    padding-bottom: 98px;
    .pie_chart {
      margin-top: 155px;
      width: 100%;
      .chart_tit {
        text-align: center;
        font-size: 40px;
        color: #3c3c3c;
        font-weight: 700;
        span {
          color: #298fec;
        }
      }
      h4 {
        font-size: 22px;
        color: #77797b;
        margin-top: 30px;
        margin-bottom: 66px;
        text-align: center;
      }
      .need {
        text-align: center;
        img {
          width: 40px;
          vertical-align: middle;
        }
        span {
          font-size: 32px;
          color: #298fec;
          vertical-align: middle;
          padding-left: 10px;
        }
      }
      .chart_main {
        padding-bottom: 50px;
        margin-top: 65px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        .chart_pic {
          position: relative;
          width: 382px;
          height: 383px;
          margin-left: 85px;
          span {
            font-size: 24px;
            color: #000;
            display: inline-block;
            padding: 9px 4px;
            border-bottom: 1px solid #000;
            font-weight: 700;
          }
          .boss {
            position: absolute;
            top: 22px;
            right: -70px;
          }
          .liepin {
            position: absolute;
            top: 182px;
            right: -77px;
          }
          .lagou {
            position: absolute;
            bottom: -2px;
            right: -7px;
            border-left: 1px solid #000;
          }
          .others {
            position: absolute;
            bottom: -45px;
            right: 51%;
            border-right: 1px solid #000;
          }
          .zhilian {
            position: absolute;
            left: -85px;
            bottom: 85px;
            padding-right: 15px;
          }
          .qiancheng {
            position: absolute;
            top: 12px;
            left: -47px;
          }
        }
        .chart_con {
          width: 600px;
          padding-left: 100px;
          box-sizing: border-box;
          padding-top: 90px;
          p {
            font-size: 28px;
            color: #000;
            margin-bottom: 25px;
          }
        }
      }
    }
    .money {
      width: 100%;
      display: flex;
      margin-top: 46px;
      .money_left {
        display: flex;
        align-items: center;
        flex-direction: column;
        .money_icon {
          margin-bottom: 46px;
          img {
            width: 40px;
            vertical-align: middle;
          }
          span {
            font-size: 32px;
            color: #298fec;
            vertical-align: middle;
            padding-left: 10px;
          }
        }
        .money_pic {
          display: flex;
          .money_pie {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-right: 43px;
            h4 {
              margin-bottom: 28px;
              span {
                font-size: 20px;
                color: #9ea9ad;
              }
              b {
                font-style: normal;
                font-weight: 700;
                color: red;
                font-size: 26px;
              }
            }
            p {
              font-size: 18px;
              color: red;
              margin-bottom: 26px;
            }
          }
          .money_list {
            display: flex;
            flex-direction: column;
            align-items: center;
            h4 {
              font-size: 20px;
              color: #9ea9ad;
              margin-bottom: 28px;
              span {
                display: inline-block;
                width: 4px;
                height: 4px;
                background-color: #9ea9ad;
                border-radius: 50%;
                vertical-align: middle;
              }
            }
          }
        }
      }
      .money_right {
        padding-left: 74px;
        display: flex;
        flex-direction: column;
        align-items: center;
        .money_right_icon {
          margin-bottom: 46px;
          img {
            width: 40px;
            vertical-align: middle;
          }
          span {
            font-size: 32px;
            color: #298fec;
            vertical-align: middle;
            padding-left: 10px;
          }
        }
        .money_right_pic {
          h4 {
            font-size: 17px;
            color: #333;
            text-align: center;
            margin-bottom: 48px;
            line-height: 30px;
          }
        }
      }
    }
    .results {
      text-align: center;
      font-size: 40px;
      font-weight: 700;
      color: #333;
      margin-top: 80px;
    }
    .subtitle {
      text-align: center;
      font-size: 22px;
      color: #9ea9ad;
      margin-top: 32px;
      margin-bottom: 52px;
    }
    .show_web {
      width: 100%;
      height: 698px;
      background-color: #eef9fe;
      .web_icon {
        margin-bottom: 45px;
        img {
          padding-left: 29px;
          padding-top: 57px;
        }
      }
      h4 {
        width: 1033px;
        margin: 0 auto;
        font-size: 22px;
        line-height: 38px;
        text-indent: 2e;
      }
      .web_pic {
        width: 745px;
        margin: 0 auto;
        margin-top: 45px;
      }
    }
    .show_app {
      margin-top: 48px;
      width: 100%;
      height: 698px;
      background-color: #eef9fe;
      .app_pic {
        display: flex;
        width: 745px;
        margin: 0 auto;
        margin-top: 45px;
        justify-content: space-between;
      }
    }
    .lesstime {
      text-align: center;
      font-size: 40px;
      font-weight: 700;
      margin-top: 98px;
      span {
        color: #298fec;
      }
    }
    .lesstime_sub {
      text-align: center;
      font-size: 22px;
      color: #9ea9ad;
      margin-top: 32px;
      margin-bottom: 68px;
    }
    .grossip {
      width: 818px;
      margin: 0 auto;
      margin-bottom: 28px;
    }
    .teacher_title {
      text-align: center;
      font-size: 40px;
      font-weight: 700;
      span {
        color: #298fec;
      }
    }
    .teacher_tit_sub {
      text-align: center;
      font-size: 22px;
      color: #9ea9ad;
      margin-top: 32px;
      margin-bottom: 68px;
    }
    .teacher_show {
      width: 1120px;
      display: flex;
      overflow: hidden;
      margin: 0 auto;
      li {
        min-width: 280px;
        height: 450px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        img {
          width: 280px;
          height: 450px;
        }
        .bottom_mask {
          width: 100%;
          height: 95px;
          background-color: rgba(0, 0, 0, 0.5);
          text-align: center;
          position: absolute;
          bottom: 0;
          left: 0;
          h4 {
            font-size: 30px;
            color: #fff;
            margin-top: 16px;
          }
          p {
            font-size: 22px;
            color: #cfcfcf;
            margin-top: 15px;
          }
        }
        .mask {
          width: 280px;
          height: 0;
          overflow: hidden;
          background-color: rgba(41, 143, 236, 0.8);
          position: absolute;
          bottom: 0;
          left: 0;
          display: flex;
          flex-direction: column;
          align-items: center;
          h4 {
            font-size: 28px;
            color: #fff;
            margin-top: 75px;
            margin-bottom: 13px;
          }
          .jianjie {
            font-size: 18px;
            color: #fff;
            width: 207px;
            border-top: 2px solid #fff;
            line-height: 32px;
            padding-top: 32px;
            overflow: hidden;
            text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 7;
-webkit-box-orient: vertical;
          }
          p {
            padding: 10px 7px;
            border: 1px solid #fff;
            border-radius: 10px;
            color: #fff;
            margin-top: 40px;
          }
        }
      }
      li:hover .bottom_mask {
  display: none;
}
li:hover .mask{
  animation: myfirst 0.5s linear ;
  animation-fill-mode:forwards;
}
    }
  }
}

@keyframes myfirst {
  from {
    height: 0px;
  }
  to {
    height: 450px;
  }
}
</style>